home *** CD-ROM | disk | FTP | other *** search
/ 5 Star Games: DOS Edition 2 / 5 Star Games - DOS Edition (1995)(Ready to Run).iso / dbc / db_dos.h < prev    next >
C/C++ Source or Header  |  1992-02-28  |  1KB  |  47 lines

  1. /****************************************************************************/
  2. /*                 HEADER FILE FOR DATABOSS MODULE: DB_DOS                  */
  3. /****************************************************************************/
  4.  
  5. typedef struct {
  6.     word ax;
  7.     word bx;
  8.     word cx;
  9.     word dx;
  10.     word si;
  11.     word di;
  12.     word cflag;
  13.     word flags;
  14. } db_wordregs;
  15.  
  16. typedef struct {
  17.     byte al,ah;
  18.     byte bl,bh;
  19.     byte cl,ch;
  20.     byte dl,dh;
  21. } db_byteregs;
  22.  
  23. typedef union {
  24.     db_wordregs x;
  25.     db_byteregs h;
  26. } db_regs;
  27.  
  28. #ifndef __TURBOC__
  29.     #define MK_FP(seg,ofs)  ((void far *) \
  30.                                                     (((unsigned long)(seg) << 16) | (unsigned)(ofs)))
  31.     #define hardresume(res) _hardresume(res)
  32.     #define harderr(eproc)  _harderr(eproc)
  33. #endif
  34.  
  35. #define delay(msecs) db_delay(msecs)
  36. #define sound(freq)  db_sound(freq)
  37. #define nosound()    db_nosound()
  38.  
  39. void swinterrupt(byte intno, db_regs *inregs, db_regs *outregs);
  40. int paramcount(void);
  41. strptr paramstr(int c);
  42. void db_delay(word msecs);
  43. void db_sound(word freq);
  44. void db_nosound(void);
  45.  
  46. /***************************** END OF DB_DOS.H *****************************/
  47.